package com.vote.domain;


public class Person {
	
	private String name;
	
	private String tel;
	
	public Person(){
		
	}
	
	public Person(String nameAndTel){
		this.name = nameAndTel.split("-")[0];
		this.tel = nameAndTel.split("-")[1];
	}
	
	

	@Override
	public String toString() {
		return "Person [name=" + name + ", tel=" + tel + "]";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
}
